package com.ydlcalss.proviver.dao;

import com.ydlcalss.proviver.domain.Goods;
import org.springframework.stereotype.Repository;

@Repository
public class GoodsDao {

    public Goods findById(Integer id){
        Goods goods=new Goods();
        goods.setGoodId(id);
        goods.setPrice(36.8);
        goods.setTitle("C语言");
        goods.setStock(100);
        return goods;
    }

}
